package jian.thread.newbie;

public class Counter {

	private int num;

	public void sum() {

		// int num = 0;
		for (int i = 1; i < 10; i++) {
			num += i;
		}
		System.out.println(Thread.currentThread().getName() + "--" + num);
	}
}
